const port = process.env.port || process.env.npm_config_port || 9528 // dev port
module.exports = {
  publicPath: './',
  lintOnSave: false,
  productionSourceMap: false, // 清除 .map 文件
  css: {
    loaderOptions: {
      less: { javascriptEnabled: true }
    }
  },
  pwa: {

    iconPaths: {

      favicon32: 'favicon.ico',

      favicon16: 'favicon.ico',

      appleTouchIcon: 'favicon.ico',

      maskIcon: 'favicon.ico',

      msTileImage: 'favicon.ico'

    }

  },
 
  devServer: {
    port: port,
  }
}
